package io.renren.modules.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.dao.BsOrderRechargeDao;
import io.renren.modules.dto.BsOrderRechargeDTO;
import io.renren.modules.entity.BsOrderRechargeEntity;
import io.renren.modules.service.BsOrderRechargeService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-05-27
 */
@Service
public class BsOrderRechargeServiceImpl extends CrudServiceImpl<BsOrderRechargeDao, BsOrderRechargeEntity, BsOrderRechargeDTO> implements BsOrderRechargeService {

    @Override
    public QueryWrapper<BsOrderRechargeEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<BsOrderRechargeEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}